import request from '@/utils/request';

// 捐赠列表
export function getDonateList(params) {
  return request({
    url: '/donate/list',
    method: 'get',
    params
  });
}

// 新增捐赠
export function addDonate(data) {
  return request({
    url: '/donate/add',
    method: 'post',
    data
  });
}

// 删除捐赠
export function deleteDonate(id) {
  return request({
    url: '/donate/delete/' + id,
    method: 'delete'
  });
}

// 更新捐赠
export function updateDonate(data) {
  return request({
    url: '/donate/update',
    method: 'put',
    data
  });
}
